package
{
	public class SkipListNode
	{
		public var listNodes:Vector.<ListNode>;
		public var data:SkipListValue;
		
		public function SkipListNode(data:SkipListValue=null)
		{
			this.data = data;
			listNodes = new Vector.<ListNode>;
		}
		
		public function getTopNode():ListNode{
			return listNodes[listNodes.length-1];
		}
		
		public function clone():SkipListNode{
			var i:int, il:int;
			var slClone:SkipListNode = new SkipListNode(); 
			for(i = 0, il = listNodes.length; i < il; i++){
				slClone.listNodes[i] = this.listNodes[i];
			}
			
			return slClone;
		}
	}
}